<?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT']."/crc/geral/uteis/imports.php";
require_once $_SERVER['DOCUMENT_ROOT']."/crc/controle/UsuarioControler.php";

$usuarioControler = new UsuarioControler();
if($usuarioControler->efetuarLogoff($_SESSION["id_usuario"],$login)){
	session_destroy();
	header("Location: login.php");
}else{
	die("ERRO AO EFETUAR LOGOFF!");
}

?>